package cn.gbase.jiangsu.data.transfer.bean;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

/**
* 
*/
@Table("goods_order")
public class ProductOrder extends BaseDto {

	@Id
	@Column
	private int id;

	@Column("pid")
	private Integer pid;

	@Column("show_flag")
	private Integer showFlag;

	@Column("supplier_id")
	private Integer supplierId;

	/**
	 * 订单编号.
	 */
	@Column("code")
	private String orderCode;

	/**
	 * 用户ID.
	 */
	@Column("user_id")
	private int userId;

	/**
	 * 代下单的用户ID.
	 */
	@Column("oprator_id")
	private int operatorId;

	/**
	 * 派送方式.
	 */
	@Column("post_type")
	private int postType;

	/**
	 * 付款方式.
	 */
	@Column("pay_type")
	private int payType;

	/**
	 * 商品金额.
	 */
	@Column("sell_price")
	private BigDecimal productPrice;

	/**
	 * 预计送达
	 */
	@Column("expect_arrive_date")
	private Date expectDate;

	/**
	 * 订单类型.
	 */
	@Column("order_type")
	private int orderType;

	/**
	 * 社区服务站ID.
	 */
	@Column("company_id")
	private int companyId;
	/**
	 * 实际送达
	 */
	@Column("actual_arrive_date")
	private Date actualDate;

	@Column("service_remark")
	private String serviceRemark;

	public Date getExpectDate() {
		return expectDate;
	}

	public void setExpectDate(Date expectDate) {
		this.expectDate = expectDate;
	}

	public int getOrderType() {
		return orderType;
	}

	public void setOrderType(int orderType) {
		this.orderType = orderType;
	}

	public Date getActualDate() {
		return actualDate;
	}

	public void setActualDate(Date actualDate) {
		this.actualDate = actualDate;
	}

	public int getCompanyId() {
		return companyId;
	}

	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}

	/**
	 * 运费金额.
	 */
	@Column("delivery_price")
	private BigDecimal deliveryPrice;

	/**
	 * 订单总金额.
	 */
	@Column("total_price")
	private BigDecimal totalPrice;

	/**
	 * 下单时间.
	 */
	@Column("create_time")
	private Date createTime;

	/**
	 * 订单状态.
	 */
	@Column("status")
	private int status;

	/**
	 * 备注.
	 */
	@Column("remark")
	private String remark;

	private int virtualFlag;

	public int getVirtualFlag() {
		return virtualFlag;
	}

	public void setVirtualFlag(int virtualFlag) {
		this.virtualFlag = virtualFlag;
	}

	/**
	 * 收货地址.
	 */
	@Column("address")
	private String address;

	/**
	 * 订单商品列表
	 */
	private List<Product> productList = null;

	/**
	 * 订单商品列表视图
	 */
	private List<OrderSupplierView> osvList = null;

	public List<OrderSupplierView> getOsvList() {
		return osvList;
	}

	public void setOsvList(List<OrderSupplierView> osvList) {
		this.osvList = osvList;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(int operatorId) {
		this.operatorId = operatorId;
	}

	public int getPostType() {
		return postType;
	}

	public void setPostType(int postType) {
		this.postType = postType;
	}

	public int getPayType() {
		return payType;
	}

	public void setPayType(int payType) {
		this.payType = payType;
	}

	public BigDecimal getProductPrice() {
		return productPrice;
	}

	public void setProductPrice(BigDecimal productPrice) {
		this.productPrice = productPrice;
	}

	public BigDecimal getDeliveryPrice() {
		return deliveryPrice;
	}

	public void setDeliveryPrice(BigDecimal deliveryPrice) {
		this.deliveryPrice = deliveryPrice;
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public List<Product> getProductList() {
		return productList;
	}

	public void setProductList(List<Product> productList) {
		this.productList = productList;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getShowFlag() {
		return showFlag;
	}

	public void setShowFlag(Integer showFlag) {
		this.showFlag = showFlag;
	}

	public Integer getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Integer supplierId) {
		this.supplierId = supplierId;
	}

	public String getServiceRemark() {
		return serviceRemark;
	}

	public void setServiceRemark(String serviceRemark) {
		this.serviceRemark = serviceRemark;
	}

}